<template>
	<view>
		<fAndD :flag="true" :list="cList" @clearLike='clearLike'></fAndD>
	</view>
</template>

<script>
	import fAndD from '../components/fAndD/fAndD.vue'
	export default {
		components:{fAndD},
		data() {
			return {
				cList:[]
			};
		},
		onLoad() {
			this.cList = this.$store.state.user.likeArr
		},
		methods:{
			clearLike(e){
				this.$store.commit('user/clearLike',e)
				this.cList = this.$store.state.user.likeArr
			}
		}
	}
</script>

<style lang="scss">

</style>
